package server;


public class FruitsServiceImpl implements FruitsService {

    @Override
    public Double SingleFruits(int count, Double money) {

        return count * money;
    }

    @Override
    public Double DiscountFruits(Double money, Double discount) {
        return discount * money;
    }

    @Override
    public Double FullReductionFruits(Double money, Double limit, Double fullReduction) {
        if (money >= limit) {
            return money - fullReduction;
        }
        return money;
    }
}
